﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.SqlTypes;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace StoreIModels
{
    /// <summary>
    /// 上传图片表
    /// </summary>
    [Table("PictureModel")]
    public class PictureModel
    {
        /// <summary>
        /// Id
        /// </summary>
        [Key]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int PictureId { get; set; }
        /// <summary>
        /// 图片名称
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public string? PictureName { get; set; }
        /// <summary>
        /// 图片排序
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public int Picturesort { get; set; }
        /// <summary>
        /// 上传图片
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public string? Picturepic { get; set; }
    }
}
